package client;

import java.awt.Dimension;
import java.awt.EventQueue;

import javax.swing.JFrame;

public class Vue {

	private JFrame jFrame;
	
	private Controleur controleur;
	
	public Vue(Controleur controleur,Clavier clavier){
		this.controleur = controleur;
		EventQueue.invokeLater(new Runnable() {
            
            @Override
            public void run() {                
                jFrame = new JFrame();
                jFrame.setTitle("Boule Blanche");    
                
                jFrame.add(new EcranJeu(controleur,clavier));
                jFrame.setResizable(false);
                jFrame. pack();
                
                
                jFrame.setLocationRelativeTo(null);
                jFrame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);     
                
                jFrame.setVisible(true);                
            }
        });
	}
}
